﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Reports.aspx.cs" Inherits="EXAM.Admin.Page_Admin.Reports"  %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td align="center" class="formTitle">
                Report</td>
        </tr>
        <tr>
            <td>
                &nbsp;
                <asp:Label ID="lbErr" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <table>
                    <tr>
                        <td style="color: Blue">
                            <b>Transfer In</b>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadUpload ID="upFile" runat="server" ControlObjectsVisibility="None"
                                TargetFolder="~/Tmp" OverwriteExistingFiles="True" 
                                AllowedFileExtensions="zip">
                            </telerik:RadUpload>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;<telerik:RadButton ID="btnTransferIn" runat="server" Text="Transfer In" Width="100px"
                                OnClick="btnTransferIn_Click">
                            </telerik:RadButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="color: Blue; font-weight: 700;">
                Report List</td>
        </tr>
        <tr>
            <td>
                <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Skin="Office2007" OnItemCommand="dgvList_ItemCommand" OnNeedDataSource="dgvList_NeedDataSource"
                    AllowFilteringByColumn="True" AllowPaging="True" ShowGroupPanel="True">
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                    </HeaderContextMenu>
                    <MasterTableView DataKeyNames="QD_ID">
                        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="TemplateColumn"
                                HeaderText="Select">
                                <ItemTemplate>
                                    <asp:LinkButton runat="server" CausesValidation="false" CommandName="Load" Text="Select"></asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle Width="50px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="QD_ID" FilterControlAltText="Filter column1 column"
                                HeaderText="Code" UniqueName="column1">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="DESCRIPTN" FilterControlAltText="Filter column2 column"
                                HeaderText="Name" UniqueName="column2">
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn ConfirmText="Delete this Report?" ButtonType="ImageButton"
                                CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                                <HeaderStyle Width="20px" />
                                <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                            </telerik:GridButtonColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings AllowDragToGroup="True">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                </telerik:RadGrid>
            </td>
        </tr>
    </table>
</asp:Content>
